package org.lboot.idmo.module.rsr;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.lboot.jpa.entity.NoAuditLongBaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "sys_rsr")
@ApiModel(value = "系统资源",description = "用户角色信息管理")
public class AuthRsr extends NoAuditLongBaseEntity implements Serializable {

    @ApiModelProperty(value = "父级菜单")
    @Column(name = "parent_id")
    Long parentId;

    @ApiModelProperty(value = "编码")
    @Column(name = "code")
    String code;

    @ApiModelProperty(value = "名称")
    @Column(name = "name")
    String name;

    @ApiModelProperty(value = "菜单图标")
    @Column(name = "icon")
    String icon;

    @ApiModelProperty(value = "类型")
    @Column(name = "type")
    String type;

    @ApiModelProperty(value = "路由地址")
    @Column(name = "path")
    String path;

    @ApiModelProperty(value = "组件路径")
    @Column(name = "component")
    String component;

    @ApiModelProperty(value = "layout")
    @Column(name = "layout")
    String layout;

    @ApiModelProperty(value = "是否显示")
    @Column(name = "`show`")
    Boolean show;

    @ApiModelProperty(value = "是否启用")
    @Column(name = "enable")
    Boolean enable;

    @ApiModelProperty(value = "keepAlive")
    @Column(name = "keep_alive")
    Boolean keepAlive;

    @ApiModelProperty(value = "排序")
    @Column(name = "order_num")
    Integer orderNum;

    @ApiModelProperty(value = "描述")
    @Column(name = "description")
    String description;
}
